package mqtt_client

import mqtt "paho"

type MqTTClient interface {
	AddSubscript(string)
	Subscript()
	Publish(string, string) int
	Connect()
	InitClient(string, int) mqtt.Client
}

func GetMqTT(ip string, port int, username string, password string, client_id string) *Client {
	option := InitOption(ip, port, username, password, client_id)

	c := &Client{}
	c.InitClient(option)
	return c
}
